<%-- 
    Document   : Jstl4
    Created on : 2014/8/18, 下午 02:26:05
    Author     : gjun
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean class="java.util.ArrayList" id="shopcar" scope="session" />
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       
         <c:forEach var="x" begin="1" end="10">
            <c:out value="${x}"/><br>
            
        </c:forEach>
        <c:forEach var="x" begin="11" end="20" step="2">
            <c:out value="${x}"/><br>
           
        </c:forEach>
       <c:forEach var="x" items="${shopcar}"  >
           
             <c:out value="${x.username}"/>, 
              <c:out value="${x.tel}"/>, 
              <c:out value="${x.birthday}"/>,  
              </c:forEach>
    </body> 
</html>
